package com.hd.assistant.biz.manager;

import java.util.List;

import com.hd.assistant.biz.manager.exception.ManagerException;
import com.hd.assistant.dal.dataobject.ClickedDetail;
import com.hd.assistant.dal.dataobject.User;

public interface AssistantManager {
	public User getUserByUserIdAndType(Long userId,String userType) throws ManagerException;
	
	public void insertUser(User user) throws ManagerException;

	public void updateUser(User user) throws ManagerException;
	
	void insertClickedDetail(ClickedDetail item) throws ManagerException;
	
	ClickedDetail getNearestClickedDetail(String clickedId)throws ManagerException ;
	
	List<ClickedDetail> getAllDetailsByItemId (String itemId)throws ManagerException ;
	
	/**
	 * 以item维度求和 获得卖家的宝贝点击数据  时间留空为所有
	 * @param userId
	 * @return
	 * @throws ManagerException
	 */
	List<ClickedDetail> getAllDetailsSumByUserId (String userId,String beginDate,String endDate)throws ManagerException ;
	
	/**
	 * 以天为维度 获得卖家的日宝贝点击总和
	 * @param userId
	 * @return
	 * @throws ManagerException
	 */
	List<ClickedDetail> getAllDetailsDailySumByUserId (String userId)throws ManagerException ;
}
